{% extends "reg6/reg.html" %}
{% load i18n %}
{% load reg6_filters %}
{% block content %}
<div id="content-main">

{% if tickets %}
    <h4>
    Registration is a two part process:
    </h4>

    <p>
    1. <b>Registration</b>: Select ticket type, add optional items, input attendee info.<br />

    2. <b>Payment</b>: After you register, select one or more attendees to pay for, then you will either be directed to pay with your credit card, or you can redeem a coupon if you have one. Attendee registrations are not valid until they have been paid for.
    </p>

    <p>
    We accepts VISA, Mastercard, American Express, and Discover.
    </p>

    <p>
    To start the registration process, start by selecting a ticket type. There are several different types of tickets:
    </p>

    <ul class="scale_ul">
    <li>Full Access Pass - Provides access to exhibit hall, all Saturday / Sunday speaker tracks, and evening events.</li>
    <li>Expo Only - Provides access to exhibit hall and Try It Labs.</li>
    <li>Friday Only Tickets - Provides access to a specific friday event.</li>
    </ul>

    <p>
    Please select a ticket type below:
    </p>

    <form method="post" action="add_items/">
    <table border="1">
    <thead>
    <tr>
        <th>&nbsp;</th>
        <th>Ticket</th>
        <th>Price</th>
    </tr>
    </thead>
    <tbody>
    {% for t in tickets %}
        <tr>
        <td><input type="radio" name="ticket"
             id="ticket_{{ t.name }}" value="{{ t.name }}" /></td>
        <td><label for="ticket_{{ t.name }}">{{ t.description }}</label></td>
        <td><label for="ticket_{{ t.name }}">{{ t.price|money }}</label></td>
        </tr>
    {% endfor %}
    </tbody>
    </table>

    {% if promo %}
    <p>
    Using promo code:
    <b>{{ promo }}</b>.
    <input type="hidden" name="promo" value="{{ promo }}" />
    </p>
    {% else %}
    <p>
    If you have a 1-5 digit promo code, enter it here:
    </p>

    <p>
    <input type="text" name="promo" maxlength="5" size="5" />
    </p>
    <p>
    Students and School Faculty may use STDNT to get 50% off the full access pass.<br />
    Please have a valid school ID with you during checkin on the day of
    the event.
    </p>
    {% endif %}

    <p>
    <input type="submit" value="Start Registration" />
    </p>
    </form>

    <h2>
    Other Options:
    </h2>

    <h4>Pay For Previous Registration</h4>

    <p>
    If you already registered, and would like to pay for your registration,
    or if you are paying for other registered attendees,
    then click the "Pay For Previous Registration" button below.
    </p>

    <form method="get" action="start_payment/">
    <p>
    <input type="submit" value="Pay For Previous Registration" />
    </p>
    </form>

    <h4>Upgrade Registration</h4>

    <p>
    If you already paid for your registration,
    and would like to upgrade your registration,
    then click the "Upgrade Registration" button below.
    </p>

    <form method="get" action="start_upgrade/">
    <input type="submit" value="Upgrade Registration" />
    </form>

    {% if promo %}
    <h4>Change Promo Code</h4>

    <form method="post" action=".">
    <input type="submit" value="Change promo code" />
    </form>
    {% endif %}
{% else %}
Registration is closed.
{% endif %}
</div>
{% endblock %}

